class AddOrderColumns < ActiveRecord::Migration
  def self.up
    add_column(:orders, :ship_to_country, :string)
    add_column(:orders, :status, :string)
    add_column(:orders, :error_message, :string)
    add_column(:orders, :created_at, :datetime)
    add_column(:orders, :updated_at, :datetime)
    add_column(:orders, :last_edited_by, :int)
  end
  
  def self.down
    delete_column(:orders, :ship_to_country, :string)
    delete_column(:orders, :status, :string)
    delete_column(:orders, :error_message, :string)
    delete_column(:orders, :created_at, :datetime)
    delete_column(:orders, :updated_at, :datetime)
    delete_column(:orders, :last_edited_by, :int)
  end
end